package org.aplikator.client.rpc.impl;

import org.aplikator.client.data.PrimaryKey;
import org.aplikator.client.descriptor.PropertyDTO;
import org.aplikator.client.descriptor.ViewDTO;
import org.aplikator.client.rpc.Command;

@SuppressWarnings("serial")
public class GetRecordCount implements Command<GetRecordCountResponse> {
    private ViewDTO view;
    private PropertyDTO<Integer> ownerProperty;
    private PrimaryKey ownerPrimaryKey;
    private boolean search;

    @SuppressWarnings("unused")
    private GetRecordCount() {
    }

    public GetRecordCount(ViewDTO view, PropertyDTO<Integer> ownerProperty, PrimaryKey ownerPrimaryKey, boolean search) {
        super();
        this.view = view;
        this.ownerProperty = ownerProperty;
        this.ownerPrimaryKey = ownerPrimaryKey;
        this.search = search;
    }

    public ViewDTO getView() {
        return view;
    }

    public PropertyDTO<Integer> getOwnerProperty() {
        return ownerProperty;
    }

    public PrimaryKey getOwnerPrimaryKey() {
        return ownerPrimaryKey;
    }

    public boolean getSearch() {
        return search;
    }

}
